package com.yfbao.horizon.skywalking.service;


import com.yfbao.horizon.skywalking.service.inter.BaseInterface;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class TestService1 {

    @Qualifier("testParentService")
    @Autowired
    private BaseInterface interstance;

    @Autowired
    private TestService2 testService2;

    @Autowired
    private BaseInterface baseInterface;

    public void testMethod(){
        baseInterface.testPubMethod3("aaa");
        baseInterface.testPubMethod3("aaa112a");
        testService2.doMethod();
        interstance.testPubMethod3("ccc");

        baseInterface.testPubMethod1("1");
    }

}
